<!DOCTYPE html>
<html lang="zh">
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>内训线索</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

    <link rel="stylesheet" href="/css/skin.css">
    <link rel="stylesheet" href="/css/contactManager/contactForm.css">
    <link rel="stylesheet" href="/css/tableAll.css">
    <link rel="stylesheet" href="/css/opportunityManager/user/userOpportunityDetail.css"/>
    <link rel="stylesheet" href="/css/workOrderManager/userWorkorderForm.css"/>
</head>
<body>
<div class="container-fluid clue-page">
    <div class="card">
        <div class="card-header">
            <h1>内训线索</h1>
        </div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                    <!-- 全部 本周 本月 本年 -->
                    <div class="time-search pull-left">
                        <input type="hidden" id="dateType" name="dateType"/>
                        <div class="all active-second" onclick="selectTime('all')">全部</div>
                        <div class="topMonth" onclick="selectTime('topMonth')">上月</div>
                        <div class="month" onclick="selectTime('month')">本月</div>
                    </div>
                </div>
                <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
                    <div class="pull-right">
                        <div class="min-search pull-left">
                            <input class="form-control" type="text" placeholder="" id="poolNameMin" name="poolNameMin"  >
                            <button class="btn btn-primary" type="button" onclick="userTrainingTableInit(1)"><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                        </div>
                        <button type="button" class="btn btn-label btn-success" data-toggle="modal" onclick="addBtn()" style="margin:0 0 0 10px;"><label><i class="mdi mdi-plus"></i></label>新增</button>
                    </div>
                </div>
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-top: 20px">
                     <table id="userTrainingTable"></table>
                </div>
            </div>
        </div>

    </div>
</div>

<div class="modal fade" id="staticBackdrop"  data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style="width: 100%;height: 100%;">
    <div class="modal-dialog" style="width: 50%">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="staticBackdropLabel">新增内训线索</h5>
            </div>
            <div class="modal-body" >
                <form id="addContactForm" class="well form-well" autocomplete="off">
                    <div class="row" style="padding: 0 20px;box-sizing: border-box">
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="customerId">客户名称</label>
                                <div class="form-content">
                                    <select class="form-control" id="customerId" name="customerId" type="text" title="请选择" data-live-search="true">
                                        <option>数据加载中，请稍后...</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="contactId">客户联系人</label>
                                <div class="form-content">
                                    <select class="form-control" id="contactId" name="contactId" type="text" title="请选择" data-live-search="true" disabled onchange="getTel(this)">
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="customerPhone" style="width: 100%;text-align: left;">联系人联系方式</label>
                                <input id="customerPhone" name="customerPhone" type="text" class="form-control" placeholder="请输入联系人联系方式"  oninput="value=value.replace(/[^\d]/g,'')">
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="col-sm-1 control-label label-required" style="width: 100%;text-align: left;">企业类型</label>
                                <select class="form-control" id="enterpriseType" name="enterpriseType" type="text" title="请选择" data-live-search="true">
                                    <option value="1">会员</option>
                                    <option value="2">非会员</option>
                                </select>
                            </div>
                            <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="col-sm-1 control-label label-required" style="width: 100%;text-align: left;">客户联系人职务</label>
                                <input id="customerJob"  name="customerJob"  type="text" class="form-control" placeholder="请输入客户联系人职务">
                            </div>
                            <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label for="endTime" class="control-label label-required">结束时间</label>
                                <div class="form-content peers-display">
                                    <input id="endTime" name="endTime" type="text" class="form-control" placeholder="请选择"  data-live-search="true">
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="col-sm-1 control-label label-required" style="width: 100%;text-align: left;">企业基本情况</label>
                            <textarea class="form-control" id="enterpriseSituation" name="enterpriseSituation" maxlength="200" autocomplete="off"></textarea>
                        </div>
                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="col-sm-1 control-label label-required" style="width: 100%;text-align: left;">企业内训需求</label>
                            <textarea class="form-control" id="internalTraining" name="internalTraining" maxlength="200" autocomplete="off"></textarea>
                        </div>
                    </div>
                </form>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" onclick="submit()">确定 </button>
                    <button type="button" class="btn btn-primary"  data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>

    </div>

</div>


</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<script src="/js/verSelect.2.0.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>

<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/trainingManager/user/userTrainingFormNx.js"></script>
</html>